#include "myfile.h"

int main()
{
  _FILE* fp = _fopen("log.txt", "a");
  
  const char* mesg = "hello world\n";
  
  int cnt = 5;
  while (cnt--)
  {
    _fwrite(fp, mesg, strlen(mesg));
    sleep(1);
  }

  _fclose(fp);
  return 0;
}
